import requset from '@/utils/request'

export default {
    // GET /admin/product/attrInfoList/{category1Id}/{category2Id}/{category3Id}
    // attrInfoList
    // 获取属性列表
    attrInfoList({ category1Id, category2Id, category3Id }) {
        return requset.get(`/admin/product/attrInfoList/${category1Id}/${category2Id}/${category3Id}`)
    },
    // DELETE /admin/product/deleteAttr/{attrId}
    // deleteAttr
    // 删除某个属性
    deleteAttr(attrId) {
        return requset.delete(`/admin/product/deleteAttr/${attrId}`)
    },
    // POST /admin/product/saveAttrInfo
    // saveAttrInfo
    // 修改属性后保存
    saveAttrInfo( data ) {
        return requset.post(`/admin/product/saveAttrInfo`,data)
    },
}